// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_prov;

import android.content.*;
import android.database.Cursor;
import android.database.MatrixCursor;
import android.net.Uri;
import android.os.ParcelFileDescriptor;
import com.nnee.p_a.p_a.cls_e;
import com.nnee.p_g.cls_b;
import java.io.File;

public class cls_CustomContentProvider extends cls_ContentProvider
{

    public CustomContentProvider()
    {
    }

    public int delete(Uri uri, String s, String as[])
    {
        return 0;
    }

    public String getType(Uri uri)
    {
        return null;
    }

    public Uri insert(Uri uri, ContentValues contentvalues)
    {
        return null;
    }

    public boolean onCreate()
    {
        return false;
    }

    public ParcelFileDescriptor openFile(Uri uri, String s)
    {
        ParcelFileDescriptor parcelfiledescriptor = null;
        f.match(uri);
        JVM INSTR tableswitch 0 1: default 32
    //                   0 80
    //                   1 41;
           goto _L1 _L2 _L3
_L1:
        parcelfiledescriptor = super.openFile(uri, s);
_L5:
        return parcelfiledescriptor;
_L3:
        String s3 = uri.getLastPathSegment();
        File file1 = new File(com.nnee.a.a.e.f(), s3);
        if(file1.exists())
            parcelfiledescriptor = ParcelFileDescriptor.open(file1, 0x10000000);
        continue; /* Loop/switch isn't completed */
_L2:
        String s1 = com.nnee.p_g.cls_b.a();
        String s2 = uri.getLastPathSegment();
        File file = new File((new StringBuilder()).append(s1).append(s2).toString());
        if(file.exists())
            parcelfiledescriptor = ParcelFileDescriptor.open(file, 0x10000000);
        if(true) goto _L5; else goto _L4
_L4:
    }

    public Cursor query(Uri uri, String as[], String s, String as1[], String s1)
    {
        f.match(uri);
        JVM INSTR tableswitch 0 1: default 28
    //                   0 129
    //                   1 34;
           goto _L1 _L2 _L3
_L1:
        Object obj = null;
_L5:
        return ((Cursor) (obj));
_L3:
        File file1;
        String s4 = uri.getLastPathSegment();
        file1 = new File(com.nnee.a.a.e.f(), s4);
        if(!file1.exists()) goto _L1; else goto _L4
_L4:
        String as2[] = new String[2];
        as2[0] = "_data";
        as2[1] = "mime_type";
        obj = new MatrixCursor(as2);
        String s5 = Uri.fromFile(file1).toString();
        String as3[] = new String[2];
        as3[0] = s5;
        as3[1] = "image/png";
        ((MatrixCursor) (obj)).addRow(as3);
          goto _L5
_L2:
        File file;
        String s2 = com.nnee.p_g.cls_b.a();
        String s3 = uri.getLastPathSegment();
        file = new File((new StringBuilder()).append(s2).append(s3).toString());
        if(!file.exists()) goto _L1; else goto _L6
_L6:
        obj = new MatrixCursor(j);
        Object aobj[] = new Object[2];
        aobj[0] = file.getName();
        aobj[1] = Long.valueOf(file.length());
        ((MatrixCursor) (obj)).addRow(aobj);
          goto _L5
    }

    public int update(Uri uri, ContentValues contentvalues, String s, String as[])
    {
        return 0;
    }

    static final String a = "custom_authority";
    static final String b = "log_file";
    static final String c = "bitmap";
    public static final Uri d = Uri.parse("content://custom_authority/log_file");
    public static final Uri e = Uri.parse("content://custom_authority/bitmap");
    static UriMatcher f;
    static final int g = 0;
    static final int h = 1;
    static final String i = "CustomContentProvider";
    private static final String j[];

    static 
    {
        String as[] = new String[2];
        as[0] = "_display_name";
        as[1] = "_size";
        j = as;
        f = new UriMatcher(-1);
        f.addURI("custom_authority", "log_file/*", 0);
        f.addURI("custom_authority", "bitmap/*", 1);
    }
}
